namespace Collaboris.Saf.Actions.Wss.Tests.Generated
{
    using Engine.Report;
    using Microsoft.SharePoint;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Saf.Tests;
    using Entities;
    using Wss.ContentType;

    using Sharepoint.WSS.ContentTypes;

    using SharePoint.Wss.Lists;

    /// <summary>
    /// This test was originally generated but has now been tested and verfiied by MJ
    /// </summary>
    [TestClass]
    public class AddContentTypeToListTest
    {

        [TestMethod]
        public void AddContentTypeToList_Test()
        {
            WSSTestAssistant<AddContentTypeToList, ContentTypeToListMapping> addcontenttypetolist =
                    new WSSTestAssistant<AddContentTypeToList, ContentTypeToListMapping>(TestEnvironment.PublishingSite, "AddContentTypeToListTestWeb", "BLANKINTERNET#0");

            using (addcontenttypetolist)
            {
                MacroReport doReport = addcontenttypetolist.DoMacro();

                SPList list = SPListHelper.GetList(addcontenttypetolist.TestWeb, "Pages");

                Assert.IsTrue(SPContentTypeHelper.IsContentTypeAssociated(list, "form"));

            }
        }

    }
}
